<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="4" class="t_bar2">基本信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" onchange="initPrpTitle()" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td width="135" align="right"><span class="color_red">*</span>项目核准文号：</td>
		<td colspan="1"><input name="proposal/prp_review_no" label="项目核准文号"
			type="text" required class="input_css required maxlength:50"
			 maxlength="50"
			value="<x:out select="$xmlData/data/proposal/prp_review_no" />" /></td>
	<td align="right"><span class="color_red">*</span>项目性质：</td>
	<td nowrap  valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="research" label="新建" value="01" /><span style="vertical-align: middle;">新建</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="research" label="改建" value="02" /><span style="vertical-align: middle;">改建</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="research" label="扩建" value="03" /><span style="vertical-align: middle;">扩建</span></label>
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="research" label="续建" value="04" /><span style="vertical-align: middle;">续建</span></label>
	<input type="hidden" name="proposal/research_value" id="research_value" class="required" value="<x:out select="$xmlData/data/proposal/research_value" />" label="项目性质" /> 
	<input type="hidden" name="proposal/research_name" id="research_name" value="<x:out select="$xmlData/data/proposal/research_name" />" label="项目性质" /></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>项目批准投资总额<br/>（万元）：</td>
	<td >
	<input  name="proposal/export"   label="项目批准投资总额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/export" />"/> 
	</td>
	<td align="right" nowrap><span class="color_red">*</span>当年实际完成投资额<br/>（万元）：</td>
	<td >
	<input  name="proposal/zy_export"   label="当年实际完成投资额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/zy_export" />"/> 
	</td>
	</tr>
	<tr>
      	<td  align="right" nowrap><span class="color_red">*</span>项目建设期开始日期：</td>
		<td >
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目建设期开始日期" ></cpt:date> 
		</td>
		<td  align="right" nowrap><span class="color_red">*</span>项目建设期结束日期：</td>
		<td  >
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目建设期结束日期"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>项目建设面积（㎡）：</td>
		<td >
		<input  name="proposal/prp_area"   label="项目建设面积" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/prp_area" />"/> 
		</td>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td>
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	</table>

	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
	
	
	<tr>
		<td   colspan="6" class="t_bar2">申请项目资金情况</td>
		
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td   colspan="1"><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right">支持方式：</td>
		<td  >
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>
	<tr>
	<td   align="right">申请贷款贴息金额（万元）：</td>
	    <td >
	    <input  name="proposal/sqje" id="sqje" class="gray " disabled label="申请贷款贴息金额" type="text" required class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	    </td>
		
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市发展和改革委员会</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目申报类别：</td>
		<td nowrap  valign="middle" colspan="5">
		<label> <input type="radio" class="do " id="prp_category01" style="vertical-align: middle;" name="prp_category" label="服务业重大项目贴息" value="01" /><span style="vertical-align: middle;">服务业重大项目贴息</span></label> 
		<label> <input type="radio" class="do " id="prp_category02" style="vertical-align: middle;" name="prp_category" label="战略新兴服务业项目贴息" value="02" /><span style="vertical-align: middle;">战略新兴服务业项目贴息</span></label> 
		<label> <input type="radio" class="do " id="prp_category03" style="vertical-align: middle;" name="prp_category" label="填补空白服务业项目贴息" value="03" /><span style="vertical-align: middle;">填补空白服务业项目贴息</span></label>
		<label> <input type="radio" class="do " id="prp_category04" style="vertical-align: middle;" name="prp_category" label="民生类服务业项目贴息" value="04" /><span style="vertical-align: middle;">民生类服务业项目贴息</span></label>
		<input type="hidden" name="proposal/prp_category_value" id="prp_category_value" class="required" value="<x:out select="$xmlData/data/proposal/prp_category_value" />" label="项目申报类别" /> 
		<input type="hidden" name="proposal/prp_category_name" id="prp_category_name" value="<x:out select="$xmlData/data/proposal/prp_category_name" />" label="项目申报类别" /></td>
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>
<div class="t_bar"><span class="color_red">*</span>项目概述</div>
   <table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo4"
	    cellspacing="1">
      <tr class="li_1">
          <td align="left"><strong>简要概括项目主要建设内容，项目实施所取得的成就、项目的创新性、发展前景以及该项目对行业的带动作用、社会经济发展的贡献</strong>（限400字）</td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="5" cols="150"  class="input_textarea required  maxlength:400"   name='proposal/goal/summary1'  label="项目概述"><x:out select="$xmlData/data/proposal/goal/summary1"/></textarea>
		   <input type='hidden' name='proposal/goal/summary1_hidden' id='proposal/goal/summary1_hidden' value=''>
		  </td>
      </tr>
     </table>
  <br/>

<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
	
	
</table>
<script type="text/javascript">
$(function(){
	//service($("#service_value").val());
});


function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}
function setValue(id){
	if("service_area_02" == id){
		$("#service_name").val($("#"+id).val()+"区");
	}
	if("service_area_03" == id){
		$("#service_name").val($("#"+id).val()+"开发区");
	}
	if("service_area_04" == id){
		$("#service_name").val("其他："+$("#"+id).val());
	}
}

function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#teach_staff_pre").val("0.00");
    }else{
    	 $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
    }
   
	
}

function setPre1(){
	var  teach_staff=$("#research_num").val();
    var staff_total=$("#staff_total").val();
    if(staff_total==''){
    	$("#proportion").val("0.00");
    }else{
    $("#proportion").val(formatVal(teach_staff*100/staff_total));
    }
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}

function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

</script>

